<?php
include_once("../c/config.php");
$mysqlitmpSi = new mysqli($dbhost, $dbuser, $dbpwd, $dbName); 
$mysqliMei = new mysqli($dbhostTmp, $dbuser, $dbpwd, $dbName); 
$sql="show tables";
$query=$mysqlitmpSi->query($sql);
$tableName=array();
while ($list=$query->fetch_assoc()){
    $tableName[]=$list['Tables_in_race'];
}
echo "&nbsp;&nbsp;表，si   mei ";
echo "<br />";
foreach ($tableName as $v){
    echo "&nbsp;&nbsp;",$v;
    $querySi=$mysqlitmpSi->query("select count(id) as count from ".$v." ");
    $getSi=$querySi->fetch_assoc();
    $siCount=$getSi['count'];
    echo "&nbsp;&nbsp; ",$siCount;
    
    $queryMei=$mysqliMei->query("select count(id) as count from ".$v." ");
    $getMei=$queryMei->fetch_assoc();
    $meiCount=$getMei['count'];
    echo "&nbsp;&nbsp; ",$meiCount;
    
    if ($siCount != $meiCount){
        echo "&nbsp;&nbsp; ,,,,,error";
    }
    
    
    echo "<br />";
   
}

 
    